package dataobjects;

import java.util.ArrayList;

public enum Direction {

	NORTH(0,1),
	SOUTH(0,-1),
	EAST(1,0),
	WEST(-1,0),
	UNKNOWN(2,2); //TODO? 
	
	
	private int horiz;
	private int vert;
	
	private Direction(int horiz, int vert){
		this.horiz = horiz;
		this.vert = vert;
	}
	
	public int getVert(){
		return vert;
	}
	
	public int getHoriz(){
		return horiz;
	}
	
	public static final ArrayList<Direction> getPossibleBranches(Direction dir){
		ArrayList<Direction> dirs = new ArrayList<Direction>();
		dirs.add(NORTH);
		dirs.add(SOUTH);
		dirs.add(EAST);
		dirs.add(WEST);
		dirs.remove(dir);
		return dirs;
	}
}
